import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import './plugins/element'
// 导入全局样式表
import './assets/css/global.css'
// 导入字体图标
import './assets/fonts/iconfont.css'
import axios from 'axios'
// 导入echarts
import * as echarts from 'echarts'
// 导入moment
import moment from 'moment'
// 导入QS
import qs from 'qs'
// 配置请求的根路径
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'
axios.defaults.baseURL = 'http://localhost:8080'
// axios.defaults.baseURL = 'http://192.168.1.3:8080'
Vue.prototype.$http = axios
Vue.prototype.$echarts = echarts
Vue.prototype.$moment = moment
Vue.prototype.$qs = qs
Vue.config.productionTip = false

new Vue({
  router: router,
  render: h => h(App),
}).$mount('#app')
